<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Role extends Model
{
    /**
     * 关联到模型的数据表
     * @var string
     */
    protected $table = 'roles';

    public function users()
    {
        return $this->belongsToMany('App\Models\User','users','role_id','user_id');
    }
}
